/**
 * 
 */
package com.yidu.drug.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yidu.drug.dao.FdSellDetailModelMapper;
import com.yidu.drug.dao.FdSellModelMapper;
import com.yidu.drug.model.FdSellDetailModel;
import com.yidu.drug.service.FdSellDetailService;

/**
 * @author meilina
 * 2018年8月18日上午8:52:06
 * @version 1.0
 */
@Service
public class FdSellDetailServiceImpl implements FdSellDetailService{
	/**
	 * 分店销售的dao接口
	 */
	@Resource
	FdSellDetailModelMapper fdSellDetailDao;
	@Override
	public int deleteByPrimaryKey(String mxId) {
		// TODO Auto-generated method stub
		return fdSellDetailDao.deleteByPrimaryKey(mxId);
	}

	@Override
	public int insert(FdSellDetailModel record) {
		// TODO Auto-generated method stub
		return fdSellDetailDao.insert(record);
	}

	@Override
	public int insertSelective(FdSellDetailModel record) {
		// TODO Auto-generated method stub
		return fdSellDetailDao.insertSelective(record);
	}

	@Override
	public FdSellDetailModel selectByPrimaryKey(String mxId) {
		// TODO Auto-generated method stub
		return fdSellDetailDao.selectByPrimaryKey(mxId);
	}

	@Override
	public int updateByPrimaryKeySelective(FdSellDetailModel record) {
		// TODO Auto-generated method stub
		return fdSellDetailDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(FdSellDetailModel record) {
		// TODO Auto-generated method stub
		return fdSellDetailDao.updateByPrimaryKey(record);
	}

	@Override
	public List<FdSellDetailModel> findAllFdSellDetail(Map<String, String> paramMap) {
		// TODO Auto-generated method stub
		return fdSellDetailDao.findAllFdSellDetail(paramMap);
	}

	@Override
	public int findCount(FdSellDetailModel fdSellDetail) {
		// TODO Auto-generated method stub
		return fdSellDetailDao.findCount(fdSellDetail);
	}

	
	@Override
	public Integer findAllPrice(String mxId) {
		// TODO Auto-generated method stub
		return fdSellDetailDao.findAllPrice(mxId);
	}

	@Override
	public List<FdSellDetailModel> findBySellId(String sellId) {
		// TODO Auto-generated method stub
		return fdSellDetailDao.findBySellId(sellId);
	}

	

	@Override
	public FdSellDetailModel findByMxId(String mxId) {
		// TODO Auto-generated method stub
		return fdSellDetailDao.findByMxId(mxId);
	}

	@Override
	public List<FdSellDetailModel> findBySellIds(FdSellDetailModel fdSellDetailModel, int page, int limit) {
		List<FdSellDetailModel> list=fdSellDetailDao.findBySellIds(fdSellDetailModel, page, limit);
		return list;
	}

	/**
	 * 分页查询
	 */
	@Override
	public Integer findRows(String sellId) {
		
		return fdSellDetailDao.findRows(sellId);
	}

	@Override
	public int xgSl(String mxId) {
		// TODO Auto-generated method stub
		return fdSellDetailDao.xgSl(mxId);
	}

	


}
